.class public Lcom/zuimeia/ui/musiccontroller/MusicControlUtils;
.super Ljava/lang/Object;
.source "MusicControlUtils.java"


# static fields
.field public static final TAG:Ljava/lang/String; = "MyMusicContorll"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getCurMediaPlayerComponentName(Landroid/content/Context;)Landroid/content/ComponentName;
    .registers 6
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    .line 17
    const/4 v0, 0x0

    .line 19
    .local v0, "eventReceiver":Landroid/content/ComponentName;
    :try_start_1
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const-string v3, "media_button_receiver"

    invoke-static {v2, v3}, Landroid/provider/Settings$System;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 20
    .local v1, "receiverName":Ljava/lang/String;
    const-string v2, "MyMusicContorll"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "MusicControlUtils ComponentName = "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 21
    invoke-static {v1}, Landroid/content/ComponentName;->unflattenFromString(Ljava/lang/String;)Landroid/content/ComponentName;
    :try_end_26
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_26} :catch_33

    move-result-object v0

    .line 25
    .end local v1    # "receiverName":Ljava/lang/String;
    :goto_27
    if-nez v0, :cond_32

    .line 26
    new-instance v0, Landroid/content/ComponentName;

    .end local v0    # "eventReceiver":Landroid/content/ComponentName;
    const-string v2, ""

    const-string v3, ""

    invoke-direct {v0, v2, v3}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 29
    .restart local v0    # "eventReceiver":Landroid/content/ComponentName;
    :cond_32
    return-object v0

    .line 22
    :catch_33
    move-exception v2

    goto :goto_27
.end method
